package com.xqboss.apps.mapper.punch;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xqboss.apps.domain.punch.PunchUserConfig;
import com.xqboss.apps.vo.punch.UserPunchEquipmentVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Collection;
import java.util.List;

/**
 * @author Trent
 * @date 2023/8/15
 */
@Repository
public interface PunchUserConfigMapper extends BaseMapper<PunchUserConfig> {

    // 过滤防止被全表更新拦截
    @InterceptorIgnore(blockAttack = "true")
    boolean cleanTodayData();

    /**
     * 获取装备列表
     * @param nftNumberIdList 装备ID列表
     * @return 装备
     */
    List<UserPunchEquipmentVo> equipmentList(@Param("nftNumberIdList")Collection<Long> nftNumberIdList);

    // 过滤防止被全表更新拦截
    @InterceptorIgnore(blockAttack = "true")
    boolean slotCleanTodayData();
}
